package ema.tpjee.banking.dao;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import javax.jws.WebService;



import ema.tpjee.banking.model.Bank;



@WebService
public interface BankDao extends Remote{
	public List<Bank> getList()throws RemoteException;
	public Bank add(Bank b) throws RemoteException;
	public Bank find(int id)throws RemoteException;
	public Bank delete(Bank b)throws RemoteException;
	public Bank first()throws RemoteException;
	public Bank last()throws RemoteException;
	public Bank prior(Bank b)throws RemoteException;
	public Bank next(Bank b)throws RemoteException;
	public Bank clone(Bank b)throws RemoteException;
	public Bank create()throws RemoteException;
	public Bank merge(Bank b)throws RemoteException;
	public Bank foobar(Bank b)throws RemoteException;
	public Bank createRandom()throws RemoteException;
	public Boolean isSame(Bank a, Bank b)throws RemoteException;
	public List<Bank> populate() throws RemoteException;
}
